<template>
  <div></div>
</template>

<script>
  import Util from "@/common/util";

  export default {
    name: "blank",
    created() {
      this.$toast.loading({
        message: '加载中...',
        forbidClick: true,
      })
      let userinfo = Util.storage.get('userinfo')
      console.log(!!userinfo)
      if (!!userinfo) {
        this.$toast.clear()
        this.$router.replace('/index')
      } else {
        this.$toast.clear()
        this.$router.replace('/login')
      }
    }
  }
</script>

<style scoped>

</style>
